package de.homelabs.exception;

public class HException extends Exception {

	//vars
	private static final long serialVersionUID = 1L;
	
	protected String exceptionKey;
	
	
	/**
	 * constructor
	 * @param message
	 */
	public HException(String message){
		super(message);
	}
	
	/**
	 * constructor
	 * @param message
	 * @param exceptionKey
	 */
	public HException(String message, String exceptionKey){
		super(message);
		this.exceptionKey = exceptionKey;
	}
	
	/********************
	 * setter / getter	*
	 ********************/
	public String getExceptionKey() {
		return exceptionKey;
	}
	public void setExceptionKey(String exceptionKey) {
		this.exceptionKey = exceptionKey;
	}
	
}
